using System;
using System.Collections.Generic;
using System.Text;

using Essentials.Persistence.Filters;

namespace Essentials.BusinessLogic.Views.Filters
{
    public class ViewRangeFilter : ViewFilter
    {
        private object _rangeStart = null;
        private object _rangeFinish = null;

        public object RangeStart
        {
            get { return _rangeStart; }
            set { _rangeStart = value; }
        }

        public object RangeFinish
        {
            get { return _rangeFinish; }
            set { _rangeFinish = value; }
        }

        public override EntityFilter MapToEntity()
        {
            return new RangeFilter(this.PropertyName, this.RangeStart, this.RangeFinish);
        }
    }
}
